const { baseModel } = require('./baseModel')
const mongoose = require('mongoose')
const doctorAndJobSchema = new mongoose.Schema({
   //职位id,关联职位表
   jid:{
    required:true,
    type:mongoose.Schema.Types.ObjectId,
    ref:'Job'
   },
   //医生id
   hid:{
    required:true,
    type:mongoose.Schema.Types.ObjectId,
    ref:'Hospital'
   },
    ...baseModel
})
module.exports = doctorAndJobSchema;